The hint is a private implementation detail between the public
and internal services, not something anybody else should set
(*cough* libnotify *cough*).
Prefix the name to hopefully make that clearer.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3204>
params[6] = {
...hints,
- 'sender-pid': new GLib.Variant('u', pid),
+ 'x-shell-sender-pid': new GLib.Variant('u', pid),
};
try {
this._notifications[id] = ndata;
let sender = invocation.get_sender();
- let pid = hints['sender-pid'];
+ const pid = hints['x-shell-sender-pid'];
let source = this._getSource(appName, pid, ndata, sender, null);
this._notifyForSource(source, ndata);